home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3433 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  835 b 

  1. Path: news.ucdavis.edu!espinoza
  2. From: espinoza@cs.ucdavis.edu (Ricardo E Espinoza-Ibarra)
  3. Newsgroups: comp.lang.c
  4. Subject: What does the -O option do?
  5. Date: 29 Jan 1996 00:05:02 GMT
  6. Organization: University of California, Davis
  7. Message-ID: <4eh2ve$4u2@mark.ucdavis.edu>
  8. NNTP-Posting-Host: thales.cs.ucdavis.edu
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. Does anyone know what the -O option in gcc C compiler does?  I have tried to compile a program in two different ways: 1) cc -o first first.c, and it worksfine; 2) cc -o first first.c -O, and it runs faster than the other one.  I checked to see if it had changed the program code in anyway, and it hadn't.
  12. This option stands for "optimizer", but I want to know how the heck it optimizes the program!  Please respond as soon as possible.
  13.  
  14. Ricardo Espinoza-Ibarra
  15. espinoza@cs.ucdavis.edu
  16.  
  17.  
  18.